 |
 |
 |
 |
#230005 - 12/26/02 06:38 AM
[6.2] Custom Title 2.2
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
Mod Name / Version - Custom Title 2.2<br /> ver 2.0 Updates to work with ver 6.2 and adds the ability to let only a specific user group change their titles.<br /> ver 2.1 Adds a check to make sure the user doesn't leave the title blank.<br /> ver 2.2 Fixes a bug where the title was getting lost on users who weren't part of the special user group. (Thanks to Leo at leoville.com for pointing out this bug. <img src="/forum/images/graemlins/wink.gif" alt="" /> )<br /><br /> Description - Gives Users of a specific usergroup the ability to change their own titles.<br /><br /> Pre-requisites - none<br /><br /> Author - JoshPet - www.joshuapettit.com<br /> for discussions and bug reports come to www.threadsdev.com<br /><br /> Credits - WrAith created version 1.0. I updated for ver. 6.2, and Storm suggested the User Group restriction.<br /><br /> Files Altered - editbasic.php, changebasic.php, editbasic.tmpl, /languages/english/editbasic.php, /languages/english/changebasic.php<br /><br /> Database Altered - no <br /><br /> New Files - none<br /><br /> Any other info - The main Credits Goes to WrAith. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br /> If you don't know the group ID Number...<br />you can run this SQL Query from the Admin Menu.<br /><br />SELECT G_Id, G_Name<br />FROM w3t_Groups<br />
Attachments
62534-CustomTitle2.2.txt (153 downloads)
Edited by JoshPet (12/30/02 12:41 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230031 - 06/20/03 09:56 AM
Re: Integrating Custom Title hack with BDay Hack
[Re: Daine]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
Hmm.. ok, there was no get_input for the title variable.. so I went ahead and added a line to do this with the rest of the get inputs. Unfortunately, that did not work. <br /> <br />Also, what I have noticed, is for the people who are able to change their titles, you can change it fine. But when you go back to your profile, the title box is blank, even though you do have a custom title. <br /> <br />I don't remember if this is how it worked in the past, but so far that and the inability for people to not change their profile w/o a custom title are the only two issues I see at this time <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />For now, I have just commented out this section: <br /> <br /> // -------------------------------------------------- <br />// If title is greater than 100 or blank then we can't proceed <br /> if (( strlen($Title) > 100 ) || (!$Title)) { <br /> $html -> not_right($ubbt_lang['TITLE_TOO_LONG'],$Cat); <br /> } <br /> <br /> <br />And it at least allows users who can't set a title to update their profile, but the too long and blank checks are gone. So that is a temporary solution anyway <img src="/forum/images/graemlins/smile.gif" alt="" />
Edited by Jeremy (06/20/03 10:00 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230034 - 06/22/03 08:26 PM
Re: Integrating Custom Title hack with BDay Hack
[Re: palmen]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
Hey Josh, I fixed the hack somehow (Not sure how since I'm a complete idiot when it comes to messing with code) <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />But anyway, there was a variable change I believe in 6.3.. from $UserTitle to just $Title. Also, in the editbasic script, it looked like the query was not pulling the title information, so by simply adding that to the query, and changing the $UserTitle to $Title, it seems to be working. <br /><br />The titles now display in the textbox, only the proper users are allowed to edit their title, and users don't get the "too long or blank" message anymore <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />So updating your instructions shouldn't be too hard at all
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|